package com.hrms.dao;

import com.hrms.pojo.EchartsData;
import com.hrms.pojo.SysDept;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author LK
 * @since 2021-10-19
 */
public interface SysDeptMapper extends BaseMapper<SysDept> {
    int updateDeptNumberAdd(@Param("oldDept") String oldDept);
    int updateDeptNumberRed(@Param("newDept") String newDept);
    //相应部门加入新员工后，部门职位空缺减一
    int updateLess (String dept_name);

    Integer queryCount(String deptName);
}
